import { createApp } from 'vue'
// import './style.css'
import App from '@/App.vue'
// 获取应用实例
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
// 配置国际化
//@ts-ignore
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
// 引入路由
import router from '@/router'
import './assets/css/common.css'
import './assets/css/index.css'
import './assets/font/iconfont.css'
import './assets/font/iconfont.js'
import pinia from './store/index'
// 获取应用实例对象
const app = createApp(App)


app.use(ElementPlus, {
  locale: zhCn, //element-plus 国际化
})

console.log(import.meta.env)
app.use(pinia)
// 注册路由
app.use(router)
// //引入路由鉴权文件
// import './permisstion'
// 安装 ElementPlus
app.use(ElementPlus)
// 将应用挂载到挂载点上
app.mount('#app')
